package com.wy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.math.BigDecimal;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 订单商品表
 * </p>
 *
 * @author 王昭贵
 * @since 2023-04-23
 */
@Data
@TableName("order_detail")
@ApiModel(value = "OrderDetail对象", description = "订单商品表")
public class OrderDetail implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("订单id")
    private Integer orderId;

    @ApiModelProperty("费用来源id")
    private int sourceId;

    @ApiModelProperty("0表示辅助检查 1表示药品")
    private Integer sourceType;

    @ApiModelProperty("数量")
    private Integer count;

    @ApiModelProperty("药品单价")
    private double singlePrice;
    @TableField(exist = false)
    private String petName;
    @TableField(exist = false)
    private String userName;
    @TableField(exist = false)
    private String checkName;
}
